import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {TabsPage} from './tabs.page';

const routes: Routes = [
    {
        path: '',
        component: TabsPage,
        children: [
            {
                path: 'main',
                loadChildren: () => import('../main/main.module').then(m => m.MainPageModule)
            }, {
                path: 'user',
                loadChildren: () => import('../user/user.module').then(m => m.UserPageModule)
            }, {
                path: '',
                loadChildren: () => import('../main/main.module').then(m => m.MainPageModule)
            }
        ]
    },
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
})
export class TabsPageRoutingModule {
}
